//
//  SpeclistModelCell.m
//  CarHome
//
//  Created by 蒋寒霄 on 14-9-24.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import "SpeclistModelCell.h"

@implementation SpeclistModelCell

- (void)dealloc
{
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self createView];
    }
    return self;
}

- (void) createView
{
    _title = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 210, 40)];
    _title.font = [UIFont systemFontOfSize:15];
    _title.numberOfLines = 2;
    _title.textColor = [UIColor blackColor];
    [self.contentView addSubview:_title];
    [_title release];
    
    _price = [[UILabel alloc] initWithFrame:CGRectMake(_title.frame.origin.x, _title.frame.origin.y, 300, 40)];
    _price.font = [UIFont systemFontOfSize:12];
    _price.textAlignment = NSTextAlignmentRight;
    _price.textColor = [UIColor redColor];
    [self.contentView addSubview:_price];
    [_price release];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
